package com.ddpt.permission.service;

import com.lh.center.common.base.BizService;
import com.lh.center.permission.api.bo.BackUserSessionInfo;
import com.lh.center.permission.api.entity.BackUserEntity;

@Deprecated
public interface BackUserService extends BizService<BackUserEntity> {

    /**
     * 账号密码登陆
     * @param account   账号
     * @param password  密码
     * @param imgCode   验证码
     * @param codeId    验证码id
     */
    BackUserSessionInfo loginByPassword(String account,String password,String imgCode,String codeId);

    /**
     * 手机号+验证码登陆
     * @param phone 手机号
     * @param code  验证码
     */
    BackUserSessionInfo loginByPhone(String phone,String code);

    /**
     * 获取用户信息
     * @param token token
     */
    BackUserSessionInfo getInfo(String token);

    /**
     * 刷新缓存
     */
    void refresh(String token);
}
